import { State } from './index';
import { GetterTree, Getter } from 'vuex';

const user: Getter<State, any> = (state: State) => state.user;
const token: Getter<State, any> = (state: State) => state.user.token;
const isGetUser: Getter<State, any> = (state: State) => state.user.isGetUser;

const getterTree: GetterTree<State, any> = {
  user,
  token,
  isGetUser,
};

export default getterTree;
